//
//  PopoverViewController.swift
//  新浪微博
//
//  Created by 李赛 on 15/5/15.
//  Copyright (c) 2015年 李赛. All rights reserved.
//

import UIKit

class PopoverViewController: UIViewController ,UITableViewDataSource{

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    lazy var friendGroup:[String] = {
        return ["首页","好友圈","群微博","我的微博"]
    }()
    
    // MARK: - tableView数据源代理
    
    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return friendGroup.count
    }
    
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("PopupCell") as! UITableViewCell
        
        cell.textLabel?.text = friendGroup[indexPath.row]
        
        return cell
    }
}
